<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            padding: 0;
            margin: 0;
            list-style: none;
        }
    </style>
</head>

<body>

    <ul>
        <!-- <li>
            <h3>11111111</h3>
            <img src="" alt="">
            <img src="" alt="">
            <img src="" alt="">
            <p>
                <span>name</span>
                <span>2023-5-18</span>
            </p>
        </li> -->
    </ul>

    <script>

        var data = [
            {
                title: '2岁出道年入100万，长相甜美被网友禁止整容的刘楚恬，如今长啥样',
                name: '李茂爱生活',
                time: '2023-5-18',
                img1: 'https://gimg3.baidu.com/search/src=http%3A%2F%2Fpics4.baidu.com%2Ffeed%2Ff31fbe096b63f624e49237fec93ec4f4184ca382.jpeg%40f_auto%3Ftoken%3D94b1a7788e50d9e37170255bfbf1c34a&refer=http%3A%2F%2Fwww.baidu.com&app=2021&size=f360,240&n=0&g=0n&q=75&fmt=auto?sec=1684515600&t=93aa82c9b60b8b93f389505aa5e7de5c',
                img2: 'https://gimg3.baidu.com/search/src=http%3A%2F%2Fpics3.baidu.com%2Ffeed%2Fa5c27d1ed21b0ef44f80aedb93be7ed680cb3e54.jpeg%40f_auto%3Ftoken%3D9b4b9c153fdcaf3a824a45719c816cc3&refer=http%3A%2F%2Fwww.baidu.com&app=2021&size=f360,240&n=0&g=0n&q=75&fmt=auto?sec=1684515600&t=b621f5bc39b8f29979f0710ddf2e5dd0',
                img3: 'https://gimg3.baidu.com/search/src=http%3A%2F%2Fpics3.baidu.com%2Ffeed%2F8435e5dde71190ef6e5c53ea8161b21afcfa60e2.jpeg%40f_auto%3Ftoken%3Dbafc3a6d476a6015f5caeab0e0cd3196&refer=http%3A%2F%2Fwww.baidu.com&app=2021&size=f360,240&n=0&g=0n&q=75&fmt=auto?sec=1684515600&t=634d8cf4c37deb81f3a7d1ee90af22e1'
            },
            {
                title: '如何看待笑果演员李昊石HOUSE的不当言论',
                name: '律师yy',
                time: '2023-2-2',
                img1: 'https://gimg3.baidu.com/search/src=http%3A%2F%2Fpics4.baidu.com%2Ffeed%2Ff31fbe096b63f624e49237fec93ec4f4184ca382.jpeg%40f_auto%3Ftoken%3D94b1a7788e50d9e37170255bfbf1c34a&refer=http%3A%2F%2Fwww.baidu.com&app=2021&size=f360,240&n=0&g=0n&q=75&fmt=auto?sec=1684515600&t=93aa82c9b60b8b93f389505aa5e7de5c',
                img2: 'https://gimg3.baidu.com/search/src=http%3A%2F%2Fpics3.baidu.com%2Ffeed%2Fa5c27d1ed21b0ef44f80aedb93be7ed680cb3e54.jpeg%40f_auto%3Ftoken%3D9b4b9c153fdcaf3a824a45719c816cc3&refer=http%3A%2F%2Fwww.baidu.com&app=2021&size=f360,240&n=0&g=0n&q=75&fmt=auto?sec=1684515600&t=b621f5bc39b8f29979f0710ddf2e5dd0',
                img3: 'https://gimg3.baidu.com/search/src=http%3A%2F%2Fpics3.baidu.com%2Ffeed%2F8435e5dde71190ef6e5c53ea8161b21afcfa60e2.jpeg%40f_auto%3Ftoken%3Dbafc3a6d476a6015f5caeab0e0cd3196&refer=http%3A%2F%2Fwww.baidu.com&app=2021&size=f360,240&n=0&g=0n&q=75&fmt=auto?sec=1684515600&t=634d8cf4c37deb81f3a7d1ee90af22e1'
            },
            {
                title: '2岁出道年入100万，长相甜美被网友禁止整容的刘楚恬，如今长啥样',
                name: '李茂爱生活',
                time: '2023-5-18',
                img1: 'https://gimg3.baidu.com/search/src=http%3A%2F%2Fpics4.baidu.com%2Ffeed%2Ff31fbe096b63f624e49237fec93ec4f4184ca382.jpeg%40f_auto%3Ftoken%3D94b1a7788e50d9e37170255bfbf1c34a&refer=http%3A%2F%2Fwww.baidu.com&app=2021&size=f360,240&n=0&g=0n&q=75&fmt=auto?sec=1684515600&t=93aa82c9b60b8b93f389505aa5e7de5c',
                img2: 'https://gimg3.baidu.com/search/src=http%3A%2F%2Fpics3.baidu.com%2Ffeed%2Fa5c27d1ed21b0ef44f80aedb93be7ed680cb3e54.jpeg%40f_auto%3Ftoken%3D9b4b9c153fdcaf3a824a45719c816cc3&refer=http%3A%2F%2Fwww.baidu.com&app=2021&size=f360,240&n=0&g=0n&q=75&fmt=auto?sec=1684515600&t=b621f5bc39b8f29979f0710ddf2e5dd0',
                img3: 'https://gimg3.baidu.com/search/src=http%3A%2F%2Fpics3.baidu.com%2Ffeed%2F8435e5dde71190ef6e5c53ea8161b21afcfa60e2.jpeg%40f_auto%3Ftoken%3Dbafc3a6d476a6015f5caeab0e0cd3196&refer=http%3A%2F%2Fwww.baidu.com&app=2021&size=f360,240&n=0&g=0n&q=75&fmt=auto?sec=1684515600&t=634d8cf4c37deb81f3a7d1ee90af22e1'
            },
            {
                title: '如何看待笑果演员李昊石HOUSE的不当言论',
                name: '律师yy',
                time: '2023-2-2',
                img1: 'https://gimg3.baidu.com/search/src=http%3A%2F%2Fpics4.baidu.com%2Ffeed%2Ff31fbe096b63f624e49237fec93ec4f4184ca382.jpeg%40f_auto%3Ftoken%3D94b1a7788e50d9e37170255bfbf1c34a&refer=http%3A%2F%2Fwww.baidu.com&app=2021&size=f360,240&n=0&g=0n&q=75&fmt=auto?sec=1684515600&t=93aa82c9b60b8b93f389505aa5e7de5c',
                img2: 'https://gimg3.baidu.com/search/src=http%3A%2F%2Fpics3.baidu.com%2Ffeed%2Fa5c27d1ed21b0ef44f80aedb93be7ed680cb3e54.jpeg%40f_auto%3Ftoken%3D9b4b9c153fdcaf3a824a45719c816cc3&refer=http%3A%2F%2Fwww.baidu.com&app=2021&size=f360,240&n=0&g=0n&q=75&fmt=auto?sec=1684515600&t=b621f5bc39b8f29979f0710ddf2e5dd0',
                img3: 'https://gimg3.baidu.com/search/src=http%3A%2F%2Fpics3.baidu.com%2Ffeed%2F8435e5dde71190ef6e5c53ea8161b21afcfa60e2.jpeg%40f_auto%3Ftoken%3Dbafc3a6d476a6015f5caeab0e0cd3196&refer=http%3A%2F%2Fwww.baidu.com&app=2021&size=f360,240&n=0&g=0n&q=75&fmt=auto?sec=1684515600&t=634d8cf4c37deb81f3a7d1ee90af22e1'
            }
        ];




        // 渲染页面
        var html = '';
        for (var i = 0; i < data.length; i++) {
            html += `
            <li>
                <h3>${data[i].title}</h3>
                <img src="${data[i].img1}" alt="">
                <img src="${data[i].img2}" alt="">
                <img src="${data[i].img3}" alt="">
                <p>
                    <span>${data[i].name}</span>
                    <span>${data[i].time}</span>
                </p>
            </li>
            `
        }


        // 放入 Ul

        var oUl = document.querySelector('ul');
        oUl.innerHTML = html;



    </script>

</body>

</html>